<template>
  <div>
    {{info}}
  </div>
  <div ref="el">修改我吧</div>
</template>

<script>
  import {inject,ref,onMounted} from 'vue';
  export default {
    name: "a",
    setup(){
      let info = inject('info')

      const el = ref('el');

      onMounted(() => {
        el.value.innerHtml = '11111'
      })

      return {info,el}
    }
  }
</script>

<style scoped>

</style>